#encoding=utf-8
'''
Created on 2011-12-11

@author: guanyw

python version:2.6

'''
import sys

def generate_bat(task_len,threadCnt,python_name,startCnt=0):
    taskCntEach = int((task_len-startCnt) / threadCnt) + 1
    for i in range(threadCnt): 
        print 'start '+python_name+' Evaluate.py ',i,i*taskCntEach+startCnt,(i+1)*taskCntEach+startCnt
        
if __name__ == '__main__':

    python_name = '%py26%'
    startCnt = 0
    task_len = 1340
    threadCnt = 8
    if len(sys.argv)>1:
        task_len = int(sys.argv[1])
        threadCnt= int(sys.argv[2])
    if len(sys.argv)>3:
        python_name = sys.argv[3]
    if len (sys.argv)>4:
        startCnt = int (sys.argv[4])
        
    generate_bat(task_len, threadCnt,python_name,startCnt)